@import '/uni.scss';
@import '/static/iconfont/iconfont.css';

.content {
	padding: 20rpx 15rpx;
	background-color: #f6f6f9;
	.member-banner {
		position: relative;
  	animation: pulse 2s infinite;
		.close-btn {
			background: rgba(229, 226, 226, 0.8);
			position: absolute;
			top: 10rpx;
			left: -3rpx;
			z-index: 10;
			border-radius: 50%;
		}
		position: absolute;
		top: 70rpx;
		right: -30rpx;
		z-index: 10;
	}

	.instant-buy {
		color: #fff;

		.instant-buy-top {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 15rpx 28rpx;
			margin-bottom: 20rpx;
			background-color: $custom-theme-color;
			// background-image: url(/static/images/indexbg.png);
			background: linear-gradient(30deg, #f92f01, #5c1adf);
			background-size: 100% 100%;
			border-radius: 30rpx 30rpx 0 0;

			.instant-buy-top-titie {
				font-size: 36rpx;
				line-height: 40rpx;
				font-weight: 700;
				width: 80rpx;
				height: 80rpx;
			}

			.instant-buy-top-item {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				height: 70rpx;
				width: 100rpx;
				font-size: 26rpx;
			}

			.select {
				color: #f1f100;
				font-size: 27rpx;
			}

			.instant-buy-top-more {
				display: flex;
				justify-content: flex-end;
				align-items: center;
				margin-left: 15rpx;
				margin-right: -15rpx;
				height: 80rpx;
				width: 120rpx;
				font-size: 30rpx;
			}
		}

		.instant-buy-swiper {
			background-color: #fff;
			height: 450rpx;
			width: 100%;

			.instant-buy-swiper-item {
				display: inline-block;
				width: 32%;
				margin-left: 8rpx;

				.instant-img {
					width: 225rpx;
					height: 215rpx;
					overflow: hidden;
					margin: 0 auto;

					image {
						display: block;
						height: 100%;
						width: 100%;
						margin: 0 auto;
					}
				}

				.instant-info {
					padding-top: 20rpx;

					.instant-title {
						width: 80%;
						white-space: nowrap;
						overflow: hidden;
						text-overflow: ellipsis;
						color: #101010;
						font-size: 28rpx;
						line-height: 40rpx;
					}

					.instant-price {
						font-size: 32rpx;
						color: $custom-theme-red;
						line-height: 40rpx;

						.instant-num {
							background-color: $custom-theme-red;
							color: #fefefe;
							font-size: 23rpx;
						}
						.instant-num {
							position: relative;
							overflow: hidden;
							display: inline-block;
							&::after {
								content: '';
								position: absolute;
								top: -50%;
								left: -50%;
								width: 200%;
								height: 20rpx;
								background: linear-gradient(45deg, transparent, rgba(255,255,255,0.8), transparent);
								transform: rotate(-45deg);
								animation: shine 1.5s infinite;
							}
						}
						
						@keyframes shine {
							0% {
								transform: translateX(-100%) rotate(-45deg);
							}
							100% {
								transform: translateX(100%) rotate(-45deg);
							}
						}
					}

					.instant-price-old {
						text-decoration: line-through;
						font-size: 18rpx;
						color: #c0b8b5;
					}
				}
			}
		}
	}

	.buy-area-card {
		padding-top: 30rpx;

		.card-title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 15rpx 28rpx;
			margin-bottom: 10rpx;

			background: linear-gradient(30deg, #f92f01, #5c1adf);
			// background-image: url(/static/images/indexbg.png);

			background-size: 100% 100%;
			border-radius: 30rpx 30rpx 0 0;
			color: #fefefe;

			.left {
				height: 80rpx;
				line-height: 80rpx;
				font-size: 36rpx;
			}

			.right {
				display: flex;
				justify-content: flex-end;
				align-items: center;
				margin-right: -15rpx;
				height: 80rpx;
				font-size: 30rpx;
			}
		}

		.goods-card-box {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;

			.goods-item-card {
				margin-top: 15rpx;
				width: 32%;
				border-radius: 13rpx;
				overflow: hidden;
				background-color: #fff;

				.goods-item-img {
					display: flex;
					justify-content: center;
					height: 225rpx;
					width: 225rpx;
					overflow: hidden;
					margin: 0 auto;

					image {
						height: 100%;
						width: 100%;
					}
				}

				.goods-item-title {
					display: -webkit-box;
					-webkit-line-clamp: 2;
					-webkit-box-orient: vertical;
					overflow: hidden;
					text-overflow: ellipsis;
					margin-bottom: 19rpx;
					height: 65rpx;
					color: #101010;
					font-size: 28rpx;
					line-height: 32rpx;
					padding: 8rpx 8rpx 0;
				}

				.goods-item-buy {
					position: relative;
					padding: 0 8rpx;

					.goods-item-price {
						font-size: 32rpx;
						color: $custom-theme-red;
						line-height: 40rpx;
					}

					.goods-item-price-old {
						text-decoration: line-through;
						font-size: 18rpx;
						color: #c0b8b5;
					}

					.add-to-cart {
						position: absolute;
						bottom: 5rpx;
						right: 8rpx;
						display: flex;
						flex-direction: column;
						align-items: center;

						.icon {
							margin-bottom: 5rpx;
							background-color: $custom-theme-red;
							width: 38rpx;
							height: 38rpx;
							border-radius: 19rpx;
							text-align: center;
							line-height: 34rpx;
						}

						.sold {
							color: $custom-theme-red;
							font-size: 19rpx;
						}
					}
				}
			}
		}
	}
}
